package hu.diploma.util;

import hu.diploma.android.util.ServiceProviderImpl;
import hu.diploma.common.service.GroupService;
import hu.diploma.common.test.AbstractGroupTest;
import android.test.AndroidTestCase;

public class GroupTest extends AndroidTestCase {

	public GroupService getGroupService() {
		ServiceProviderImpl.getInstance().setContentResolver(getContext().getContentResolver());
		return ServiceProviderImpl.getInstance().getGroupService();
	}

	AbstractGroupTest abstractGroupTest = new AbstractGroupTest() {

		@Override
		public GroupService getGroupService() {
			return GroupTest.this.getGroupService();

		}
	};

	public void test() throws Exception {
		abstractGroupTest.loadAll();
	}
}
